function out = cve(in)

inlen = length(in);

evelopeE = abs(in) - sum(abs(in)) / inlen;

allpow = sum((abs(in)).^2);

varpow = sum(evelopeE.^2);

out = varpow / allpow;

end